<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--引用CSS-->
	<link rel="stylesheet" type="text/css" href="css/mycss.css">
	
  </head>
  
  <body>
  <table width="773" height="787" border="1" align="center">
  <tr>
    <td height="112" colspan="2"><div align="center">
    <!--引入head.jsp到主界面来  -->
    <jsp:include flush="true" page="head.jsp"></jsp:include>
    </div></td>
  </tr>
  
  <tr>
    <td width="25%" height="500"><div align="center">left.jsp</div></td>
    <td width="75%"><div align="center" >    
          <center> 
    <br><br><br><br>Register.jsp 注册页面 <br>
     <h1><font color="red"><center>Update Student</center></font></h1>    
    
    
     <s:form action="updateStudent2">
     
     <table>
     
     <tr>
     <td>
     	<s:hidden name="student.stu_id" value="%{student.stu_id}"></s:hidden>         <!-- 隐藏的字段 -->
     
     </td>
     </tr>
     
     
     <tr>
     <td>
     	<s:textfield name="student.name" value="%{student.name}" label="name"></s:textfield>
     
     </td>
     </tr>
     
     
     <tr>
     <td>
     	<s:textfield name="student.count" value="%{student.count}" label="count"></s:textfield>
     
     </td>
     </tr>

     <tr>
     <td>
     	
		<s:textfield name="student.code" value="%{student.code}" label="code"></s:textfield>
     
     </td>
     </tr>
     
     <tr>
     <td>
     	
		<s:textfield name="student.email" value="%{student.email}" label="email"></s:textfield>
     
     </td>
     </tr>

     <tr>
     <td>
     	
		<s:textfield name="student.grade" value="%{student.grade}" label="grade"></s:textfield>
     
     </td>
     </tr>
     <tr>
     <td>
     	
		<s:textfield name="student.major" value="%{student.major}" label="major"></s:textfield>
     
     </td>
     </tr>
     <tr><td><s:textfield name="student.college" value="%{student.college}" label="college"></s:textfield></td></tr>
     <tr><td><s:textfield name="student.clas" value="%{student.clas}" label="clas"></s:textfield></td></tr>     
     <tr><td><s:textfield name="student.sex" value="%{student.sex}" label="sex"></s:textfield></td></tr>     
     <tr><td><s:textfield name="student.teacher" value="%{student.teacher}" label="teacher"></s:textfield></td></tr>     
     <tr><td><s:textfield name="student.registerDate" value="%{student.registerDate}" label="registerDate"></s:textfield></td></tr>     
     <tr>
     <td>
     	<s:submit value="submit"></s:submit> 
     </td>
     </tr>
     
     
     </table>
     

     </s:form>
    	

    </center>

        
    </div></td>
  </tr>
  
  <tr>
    <td colspan="2"><div align="center">
     <jsp:include flush="true" page="tail.jsp"></jsp:include>
    </div><br></td>
  </tr>
    
  
</table>
  </body>
</html>

